linearGPmapanalysis(gmap, reference="F2", freqmat=NULL,
max.level=NULL , S_full=NULL)
preparelinearGPmap(gmap, reference="F2", freqmat=NULL, S_full=TRUE)
genNames
."F2"
population is used. Other possibilities are "noia"
, "G2A"
, "UWR"
.reference="G2A"
: A vector of length $L$ containing allele frequencies such that
freqmat[i]=frequency(allele 1)
for locus i
.
For reference="noia"
S
matrix $(3^L\times3^L)$ in memory or alternatively to keep
$L$ single locus S
matrices $(3\times3)$ and compute single row and columns of the full matrix.linearGPmapanalysis
returns an object of class "noia.linear.gpmap"
, with its own print
method: print.noia.linear.gpmap
.S
matrix and do not have to consider the X
and Z
matrices used in linearRegression
.
When it comes to the S_full
argument keeping the multilocus S
matrix in memory is generally fastest for computing all $3^L$
genetic effects. However it does not allow for computing only a subset of the effects and also runs out of memory for $L>8$ on a typical desktop machine.
For S_full=NULL in linearGPmapanalysis
a full S
matrix is used if $L<=8$ and="" max.level="NULL," while="" $l$="" single="" locus="" S matrices are used otherwise.
prepareGPmapanalysis
performs all preliminary calculation on the dataset, but does not solve the linear system.=8$>
varianceDecomposition
map <- c(0.25, -0.75, -0.75, -0.75, 2.25, 2.25, -0.75, 2.25, 2.25)
# Genotype-to-phenotype map analysis
linearGP <- linearGPmapanalysis(map, reference="F2")
# Linear effects in ideal F2 population
linearGP
Run the code above in your browser using DataLab